<div id="titulo_azul">
	<span><?php __('Combos');?></span>
</div>
<div id="contenido_gral">
<?php
	if(!empty($combos)){
?>
	<table cellpadding="0" cellspacing="0" id="tabla_gral">
	<tr>
			<th>&nbsp;</th>
			<th><?php __('Nombre'); ?></th>
			<th><?php __('Tipo'); ?></th>
			<th><?php __('Profesional'); ?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($combos as $combo):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td width="30">
			<?php 
				echo $this->Html->link(
				    $this->Html->image("/images/ic_menu_delete.png", array('alt' => 'Borrar','title' => 'Borrar','width' => '15')),
				    "/combos/delete/".$combo['Combo']['id'],
				    array('escape'=>false),
				    "¿Confirma la eliminación del Combo ".$combo['Combo']['name']."?"
				);
			?>
		</td>
		<td><?php echo $combo['Combo']['name']; ?>&nbsp;</td>
		<td><?php echo $combo['Typecombo']['name']; ?></td>
		<td><?php echo $combo['User']['lastname']." ".$combo['User']['name']; ?>&nbsp;</td>
	</tr>
<?php endforeach; ?>
	</table>
<?php
	}else{
		echo "No se registran datos...<br/>";
	}
?>
	<br/><a href="javascript:MostrarModal('ventana_modal','Combo Nuevo','/combos/add/',600,450)" class="link_destacado">Cargar un Combo</a>
</div>
